package CoreNRMSystem;


/**
 * Generated from IDL struct "EthernetPortInfoType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class EthernetPortInfoTypeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(CoreNRMSystem.EthernetPortInfoTypeHelper.id(),"EthernetPortInfoType",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("ethernetPort", GenericNRMSystem.DNHelper.type(), null),new org.omg.CORBA.StructMember("ethernetPortIPAddrList", CoreNRMSystem.EthernetPortIPAddrListTypeHelper.type(), null),new org.omg.CORBA.StructMember("ethernetPortAttribute", CoreNRMSystem.EthernetPortAttributeTypeHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final CoreNRMSystem.EthernetPortInfoType s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static CoreNRMSystem.EthernetPortInfoType extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:CoreNRMSystem/EthernetPortInfoType:1.0";
	}
	public static CoreNRMSystem.EthernetPortInfoType read (final org.omg.CORBA.portable.InputStream in)
	{
		CoreNRMSystem.EthernetPortInfoType result = new CoreNRMSystem.EthernetPortInfoType();
		result.ethernetPort=in.read_string();
		result.ethernetPortIPAddrList = CoreNRMSystem.EthernetPortIPAddrListTypeHelper.read(in);
		result.ethernetPortAttribute=CoreNRMSystem.EthernetPortAttributeTypeHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final CoreNRMSystem.EthernetPortInfoType s)
	{
		out.write_string(s.ethernetPort);
		CoreNRMSystem.EthernetPortIPAddrListTypeHelper.write(out,s.ethernetPortIPAddrList);
		CoreNRMSystem.EthernetPortAttributeTypeHelper.write(out,s.ethernetPortAttribute);
	}
}
